package com.easybacklog.client.vision;

import com.easybacklog.client.cucumberfeatures.edit.ButtonSaveBacklogFeature;
import com.easybacklog.client.model.ProjectFeature;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * 
 * @UserInterface
 */
public class VisionPage extends VerticalPanel {

	public static TextArea description = new TextArea();

	public VisionPage(ProjectFeature vision) {

		this.setSpacing(10);

		this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		HTML html = new HTML(
				"<b><font color='blue' size='3'>Vision</font></b> ");
		this.add(html);

		HTML htmlDescription = new HTML(vision.getFeatureDescription());
		this.add(htmlDescription);

		this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		this.add(new ButtonSaveBacklogFeature(vision));

	}
}
